package com.obixlabs.security.credentialsstore.server.dao.ldapimpl;

import com.obixlabs.security.credentialsstore.server.dao.ldapimpl.config.GroupCategorizationConfig;
import com.obixlabs.security.credentialsstore.server.dao.ldapimpl.config.LDAPCategorizationInfo;
import com.obixlabs.security.credentialsstore.server.dao.ldapimpl.config.PermissionCategorizationConfig;
import com.obixlabs.security.credentialsstore.server.dao.ldapimpl.config.UserCategorizationConfig;

abstract class AbstractLDAPDAO
{
	private LDAPConnection adminConnection;
	private LDAPCategorizationInfo categorizationInfo;
			
	public LDAPConnection getAdminConnection(){return adminConnection;}	
	public void setAdminConnection(LDAPConnection adminConnection)
	{this.adminConnection = adminConnection;}
	
	public LDAPCategorizationInfo getCategorizationInfo() {return categorizationInfo;}
	public void setCategorizationInfo(LDAPCategorizationInfo categorizationInfo)
	{this.categorizationInfo = categorizationInfo;}
	
	
	public GroupCategorizationConfig getGroupCategorizationConfig()
	{return getCategorizationInfo().getGroupCategorizationConfig();}
	
	public UserCategorizationConfig getUserCategorizationConfig()
	{return getCategorizationInfo().getUserCategorizationConfig();}
	
	public PermissionCategorizationConfig getPermissionCategorizationConfig()
	{return getCategorizationInfo().getPermissionCategorizationConfig();}
		
}//end class def